THE CoNteMpOrArY HIVEQ Forum Index THE CoNteMpOrArY HIVEQ
games and blogs nth edition
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   You have no new messagesYou have no new messages   Log out [ Arrogance ]Log out [ Arrogance ] 

enCry released

 
Post new topic   Reply to topic    THE CoNteMpOrArY HIVEQ Forum Index -> SC2 Coding
View previous topic :: View next topic  
Author Message
DracoLacertae
(slightly) Evil Admin


Joined: 27 Jan 2005
Posts: 68
Location: Berkeley

PostPosted: Tue Mar 08, 2005 5:26 am    Post subject: enCry released Reply with quote

Here is the initial release of my encryption/patch program. I think it is rather simple to use:

to encode a file:
-click select code

-click select input file, and pick the file you want to encode (such as a sc2 skin)

-click select key/original, and choose a file you wish to use as a key to this file. In the case of sc2 skins, it could be the original version of the skin, the characters vxt, etc, whatever. (It is not necessary that the key have any relation to the input file, but should be some file that legitimate owners of sc2 alrady have. The closer this file is to the file being encoded is, the smaller the .cry file will be.)

-click select output file and pick a new name if you don't like the autogenerated name

-click start code

The resulting .cry file is the coded version of the file, which contains a list of differences from the key.

To decode the file:

-Click select decode

-click select input file, and pick a .cry file

-click select key/original and pick the same key used for coding

-click select output file if you don't like the autogenerated name

-click start decode

The resulting file should be what was started with before encoding.


Basically you can think of it as a patch system or an encryption system, depending on how you look at how it works, and how dissimilar the files are. In any case, you follow the same steps to use the program: Just pretend it's a patch system (like th DOA bos patch) and you'll do fine.



encry.zip
 Description:
Should be ok now.

Download
 Filename:  encry.zip
 Filesize:  47.95 KB
 Downloaded:  36 Time(s)



Last edited by DracoLacertae on Wed Mar 09, 2005 5:50 am; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website AIM Address  
OOFMATIC



Joined: 31 Jan 2005
Posts: 88

PostPosted: Tue Mar 08, 2005 6:53 am    Post subject: Reply with quote

Is it expected for this to be manditory on this site?
Back to top
View user's profile Send private message MSN Messenger 
wp326
(I ain't evil?) Site Admin


Joined: 25 Nov 2004
Posts: 63
Location: CA

PostPosted: Tue Mar 08, 2005 7:25 am    Post subject: Reply with quote

yes. Hopefully that every user can make use of this simple app. Or use your own "patch" system.
Back to top
View user's profile Send private message Send e-mail Visit poster's website  
MadHouse



Joined: 30 Jan 2005
Posts: 81

PostPosted: Tue Mar 08, 2005 8:41 am    Post subject: Reply with quote

[quote="wp326"]yes. Hopefully that every user can make use of this simple app. Or use your own "patch" system.[/quote]

Please don't add that "use your own patch" option. The more types of patches there are will just make things more confusing and reduce the chances of there being any kind of standard. I would say that if we are to only post patched skins that ONLY one type of patch be allowed - Draco's patched.

If we must support more than just that patch type then I would ask that the only additional patch format be the PPF format. It's used widely enough that supporting it shouldn't be too much of a problem.

Just my $0.02...
Back to top
View user's profile Send private message Send e-mail  
Job Van Dam



Joined: 02 Feb 2005
Posts: 141
Location: Toronto, ON

PostPosted: Tue Mar 08, 2005 10:33 am    Post subject: Reply with quote

The only problem I have is the name.... enCry is kinda of a sad name. Sad
Back to top
View user's profile Send private message MSN Messenger 
DracoLacertae
(slightly) Evil Admin


Joined: 27 Jan 2005
Posts: 68
Location: Berkeley

PostPosted: Tue Mar 08, 2005 10:33 am    Post subject: Reply with quote

I would like to see people try out the program, and report any bugs. If all works well, I think it should be mandatory.

PPF files will also be allowed, since there are alrady existing patches (such as the screenshot patch) that use that system.

The name can change, just suggest something. Yeah the name is a little sad, I didn't really give it much thought.
Back to top
View user's profile Send private message Visit poster's website AIM Address  
Job Van Dam



Joined: 02 Feb 2005
Posts: 141
Location: Toronto, ON

PostPosted: Tue Mar 08, 2005 11:54 am    Post subject: Reply with quote

Bug: Select Input File, click Start Code. crash.

Pointless Bug: If you make a .cry file and the Input File and the Key are the same file when decoding it gives an error.

I think it would be better if when you click Select Input File the files are filtered by what files are actually in SC2 instead of having everything show up. Same with selecting Decode File then Input File the filter should only show .cry files.

Holy smokes! I think if you screw up (input wrong directions) the original file becomes 0 bytes. Can't you make a copy of the original file in some temp folder instead of working directly with the original?


Last edited by Job Van Dam on Tue Mar 08, 2005 12:08 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
OOFMATIC



Joined: 31 Jan 2005
Posts: 88

PostPosted: Tue Mar 08, 2005 12:01 pm    Post subject: Reply with quote

Honestly, i dont like this because i feel you guys are being a bit paranoid with having to encrypt everything.

It just seems like complicating things more when everything is already extremely simple.

thats just my honest opinion on this, no offence to you guys.
Back to top
View user's profile Send private message MSN Messenger 
DracoLacertae
(slightly) Evil Admin


Joined: 27 Jan 2005
Posts: 68
Location: Berkeley

PostPosted: Wed Mar 09, 2005 5:01 am    Post subject: Reply with quote

Quote:
Bug: Select Input File, click Start Code. crash.

Fixed. I had a pointer problem.

Quote:
Pointless Bug: If you make a .cry file and the Input File and the Key are the same file when decoding it gives an error.

It does a quick 'sanity' check on the filenames you give, making sure that no two names are the same.

Quote:

I think it would be better if when you click Select Input File the files are filtered by what files are actually in SC2 instead of having everything show up. Same with selecting Decode File then Input File the filter should only show .cry files.


When encoding, all files are shown, because any type of file can be encoded. Even a zipped or rarred skin can be coded against the original version of the skin.

When decoding, the files are now filtered to *.cry


Quote:
Holy smokes! I think if you screw up (input wrong directions) the original file becomes 0 bytes. Can't you make a copy of the original file in some temp folder instead of working directly with the original?


The input file is copied to c:\encrytemp.tmp, and the key copied to c:\encrytempkey.tmp. The operations are done on the temp files, and then are deleted.

EDIT: The key is no longer copied, just the input file. This shouldn't be a problem. Just keep a copy of your key around, and if you ever get corrupted key files, let me know, but as far as I can tell, the keys can never get corrupted.


Last edited by DracoLacertae on Wed Mar 09, 2005 9:19 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address  
Job Van Dam



Joined: 02 Feb 2005
Posts: 141
Location: Toronto, ON

PostPosted: Wed Mar 09, 2005 8:51 am    Post subject: Reply with quote

Wow, what a nice guy. Thanks Draco. I :heart: The Draco. Embarassed

Forgot to mention nice GUI wp326, so fancy schmancy. Razz
Back to top
View user's profile Send private message MSN Messenger 
Display posts from previous:   
Post new topic   Reply to topic    THE CoNteMpOrArY HIVEQ Forum Index -> SC2 Coding All times are GMT + 3 Hours
Page 1 of 1
Watch this topic for replies
 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
You can attach files in this forum
You can download files in this forum